package com.cooper.vo;

import java.io.Serializable;
import java.util.List;

import com.cooper.constants.ResourceConstants;
import com.google.common.collect.Lists;

public class MallCategoryVo extends BaseVo implements Serializable{

	private static final long serialVersionUID = 1L;
	
	private String name;
	private String status = ResourceConstants.Status.VALID;
	private Long parentId;
	private String sortNo;
	private Integer hasChild;
	private Integer cataLevel;
	private String fullIdPath;
	private List<MallCategoryVo> childCategoryList = Lists.newArrayList();
	private List<DisplayPicConfigVo> displayPicConfigList = Lists.newArrayList();
	private String fullNamePath;
	private boolean checked;
	
	public void addChild(MallCategoryVo childCategoryVo){
		this.childCategoryList.add(childCategoryVo);
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		changeSupport.firePropertyChange("name", this.name, name);
		this.name = name;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		changeSupport.firePropertyChange("status", this.status, status);
		this.status = status;
	}
	public Long getParentId() {
		return parentId;
	}
	public void setParentId(Long parentId) {
		changeSupport.firePropertyChange("parentId", this.parentId, parentId);
		this.parentId = parentId;
	}
	public String getSortNo() {
		return sortNo;
	}
	public void setSortNo(String sortNo) {
		changeSupport.firePropertyChange("sortNo", this.sortNo, sortNo);
		this.sortNo = sortNo;
	}
	public Integer getHasChild() {
		return hasChild;
	}
	public void setHasChild(Integer hasChild) {
		changeSupport.firePropertyChange("hasChild", this.hasChild, hasChild);
		this.hasChild = hasChild;
	}
	public Integer getCataLevel() {
		return cataLevel;
	}
	public void setCataLevel(Integer cataLevel) {
		changeSupport.firePropertyChange("cataLevel", this.cataLevel, cataLevel);
		this.cataLevel = cataLevel;
	}
	public String getFullIdPath() {
		return fullIdPath;
	}
	public void setFullIdPath(String fullIdPath) {
		changeSupport.firePropertyChange("fullIdPath", this.fullIdPath, fullIdPath);
		this.fullIdPath = fullIdPath;
	}
	public List<MallCategoryVo> getChildCategoryList() {
		return childCategoryList;
	}
	public void setChildCategoryList(List<MallCategoryVo> childCategoryList) {
		this.changeSupport.firePropertyChange("childCategoryList", this.childCategoryList, childCategoryList);
		this.childCategoryList = childCategoryList;
	}

	public String getFullNamePath() {
		return fullNamePath;
	}

	public void setFullNamePath(String fullNamePath) {
		this.changeSupport.firePropertyChange("fullNamePath", this.fullNamePath, fullNamePath);
		this.fullNamePath = fullNamePath;
	}

	public boolean getChecked() {
		return checked;
	}

	public void setChecked(boolean checked) {
		this.checked = checked;
	}

	public List<DisplayPicConfigVo> getDisplayPicConfigList() {
		return displayPicConfigList;
	}

	public void setDisplayPicConfigList(
			List<DisplayPicConfigVo> displayPicConfigList) {
		this.displayPicConfigList = displayPicConfigList;
	}

}
